package com.huang.dao.impl;

import com.huang.dao.UserDao;
import com.huang.entity.UserEntity;
import com.huang.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserDaoImpl implements UserDao {
    @Autowired
    private UserMapper userMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return 0;
    }

    @Override
    public int insert(UserEntity record) {
        return userMapper.insert(record);
    }

    @Override
    public int insertSelective(UserEntity record) {
        return 0;
    }

    @Override
    public UserEntity selectByPrimaryKey(Integer id) {
        return userMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<UserEntity> select() {
        return userMapper.select();
    }

    @Override
    public int updateByPrimaryKeySelective(UserEntity record) {
        return 0;
    }

    @Override
    public int updateByPrimaryKey(UserEntity record) {
        return 0;
    }
}
